package com.atguigu.entity;

import java.io.Serializable;

/**
 * 库存单元表(SkuInfo)实体类
 *
 * @author makejava
 * @since 2024-12-09 21:24:25
 */
public class SkuInfo implements Serializable {
    private static final long serialVersionUID = -50735838322143827L;
    /**
     * 库存id(itemID)
     */
    private Long id;
    /**
     * 商品id(绑定用于平台搜索)
     */
    private Long productId;
    /**
     * 价格
     */
    private String price;
    /**
     * sku名称
     */
    private String skuName;
    /**
     * 商品规格描述
     */
    private String skuDesc;
    /**
     * 重量
     */
    private Double weight;
    /**
     * 品牌(冗余)
     */
    private Long brandId;
    /**
     * 二级分类id（冗余)
     */
    private Long category2Id;
    /**
     * 默认显示图片(冗余)
     */
    private String skuDefaultImg;
    /**
     * 是否销售（1：是 0：否）
     */
    private Integer isSale;
    /**
     * 用于展示剩余数量,假的
     */
    private Integer quantity;

    public SkuInfo(Long id, Long productId, String price, String skuName, String skuDesc, Double weight, Long brandId, Long category2Id, String skuDefaultImg, Integer isSale, Integer quantity) {
        this.id = id;
        this.productId = productId;
        this.price = price;
        this.skuName = skuName;
        this.skuDesc = skuDesc;
        this.weight = weight;
        this.brandId = brandId;
        this.category2Id = category2Id;
        this.skuDefaultImg = skuDefaultImg;
        this.isSale = isSale;
        this.quantity = quantity;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public String getSkuDesc() {
        return skuDesc;
    }

    public void setSkuDesc(String skuDesc) {
        this.skuDesc = skuDesc;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public Long getCategory2Id() {
        return category2Id;
    }

    public void setCategory2Id(Long category2Id) {
        this.category2Id = category2Id;
    }

    public String getSkuDefaultImg() {
        return skuDefaultImg;
    }

    public void setSkuDefaultImg(String skuDefaultImg) {
        this.skuDefaultImg = skuDefaultImg;
    }

    public Integer getIsSale() {
        return isSale;
    }

    public void setIsSale(Integer isSale) {
        this.isSale = isSale;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

}

